using Google.ProtocolBuffers;
using micromsgBackground.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsgBackground
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class NewSyncResponse : GeneratedMessageLite<NewSyncResponse, NewSyncResponse.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<NewSyncResponse, NewSyncResponse.Builder>
		{
			private bool resultIsReadOnly;
			private NewSyncResponse result;
			protected override NewSyncResponse.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override NewSyncResponse MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override NewSyncResponse DefaultInstanceForType
			{
				get
				{
					return NewSyncResponse.DefaultInstance;
				}
			}
			public int Ret
			{
				get
				{
					return this.result.Ret;
				}
				set
				{
					this.SetRet(value);
				}
			}
			public CmdList CmdList
			{
				get
				{
					return this.result.CmdList;
				}
				set
				{
					this.SetCmdList(value);
				}
			}
			public uint ContinueFlag
			{
				get
				{
					return this.result.ContinueFlag;
				}
				set
				{
					this.SetContinueFlag(value);
				}
			}
			public SKBuiltinBuffer_t KeyBuf
			{
				get
				{
					return this.result.KeyBuf;
				}
				set
				{
					this.SetKeyBuf(value);
				}
			}
			public uint Status
			{
				get
				{
					return this.result.Status;
				}
				set
				{
					this.SetStatus(value);
				}
			}
			public Builder()
			{
				this.result = NewSyncResponse.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(NewSyncResponse cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private NewSyncResponse PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					NewSyncResponse other = this.result;
					this.result = new NewSyncResponse();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override NewSyncResponse.Builder Clear()
			{
				this.result = NewSyncResponse.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override NewSyncResponse.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new NewSyncResponse.Builder(this.result);
				}
				return new NewSyncResponse.Builder().MergeFrom(this.result);
			}
			public override NewSyncResponse BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override NewSyncResponse.Builder MergeFrom(IMessageLite other)
			{
				if (other is NewSyncResponse)
				{
					return this.MergeFrom((NewSyncResponse)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override NewSyncResponse.Builder MergeFrom(NewSyncResponse other)
			{
				return this;
			}
			public override NewSyncResponse.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override NewSyncResponse.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(NewSyncResponse._newSyncResponseFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = NewSyncResponse._newSyncResponseFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 18u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 8u)
						{
							this.result.hasRet = input.ReadInt32(ref this.result.ret_);
							continue;
						}
						if (num3 == 18u)
						{
							CmdList.Builder builder = CmdList.CreateBuilder();
							if (this.result.hasCmdList)
							{
								builder.MergeFrom(this.CmdList);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.CmdList = builder.BuildPartial();
							continue;
						}
					}
					else
					{
						if (num3 == 24u)
						{
							this.result.hasContinueFlag = input.ReadUInt32(ref this.result.continueFlag_);
							continue;
						}
						if (num3 == 34u)
						{
							SKBuiltinBuffer_t.Builder builder2 = SKBuiltinBuffer_t.CreateBuilder();
							if (this.result.hasKeyBuf)
							{
								builder2.MergeFrom(this.KeyBuf);
							}
							input.ReadMessage(builder2, extensionRegistry);
							this.KeyBuf = builder2.BuildPartial();
							continue;
						}
						if (num3 == 40u)
						{
							this.result.hasStatus = input.ReadUInt32(ref this.result.status_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public NewSyncResponse.Builder SetRet(int value)
			{
				this.PrepareBuilder();
				this.result.hasRet = true;
				this.result.ret_ = value;
				return this;
			}
			public NewSyncResponse.Builder ClearRet()
			{
				this.PrepareBuilder();
				this.result.hasRet = false;
				this.result.ret_ = 0;
				return this;
			}
			public NewSyncResponse.Builder SetCmdList(CmdList value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasCmdList = true;
				this.result.cmdList_ = value;
				return this;
			}
			public NewSyncResponse.Builder SetCmdList(CmdList.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasCmdList = true;
				this.result.cmdList_ = builderForValue.Build();
				return this;
			}
			public NewSyncResponse.Builder MergeCmdList(CmdList value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasCmdList && this.result.cmdList_ != CmdList.DefaultInstance)
				{
					this.result.cmdList_ = CmdList.CreateBuilder(this.result.cmdList_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.cmdList_ = value;
				}
				this.result.hasCmdList = true;
				return this;
			}
			public NewSyncResponse.Builder ClearCmdList()
			{
				this.PrepareBuilder();
				this.result.hasCmdList = false;
				this.result.cmdList_ = null;
				return this;
			}
			public NewSyncResponse.Builder SetContinueFlag(uint value)
			{
				this.PrepareBuilder();
				this.result.hasContinueFlag = true;
				this.result.continueFlag_ = value;
				return this;
			}
			public NewSyncResponse.Builder ClearContinueFlag()
			{
				this.PrepareBuilder();
				this.result.hasContinueFlag = false;
				this.result.continueFlag_ = 0u;
				return this;
			}
			public NewSyncResponse.Builder SetKeyBuf(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasKeyBuf = true;
				this.result.keyBuf_ = value;
				return this;
			}
			public NewSyncResponse.Builder SetKeyBuf(SKBuiltinBuffer_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasKeyBuf = true;
				this.result.keyBuf_ = builderForValue.Build();
				return this;
			}
			public NewSyncResponse.Builder MergeKeyBuf(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasKeyBuf && this.result.keyBuf_ != SKBuiltinBuffer_t.DefaultInstance)
				{
					this.result.keyBuf_ = SKBuiltinBuffer_t.CreateBuilder(this.result.keyBuf_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.keyBuf_ = value;
				}
				this.result.hasKeyBuf = true;
				return this;
			}
			public NewSyncResponse.Builder ClearKeyBuf()
			{
				this.PrepareBuilder();
				this.result.hasKeyBuf = false;
				this.result.keyBuf_ = null;
				return this;
			}
			public NewSyncResponse.Builder SetStatus(uint value)
			{
				this.PrepareBuilder();
				this.result.hasStatus = true;
				this.result.status_ = value;
				return this;
			}
			public NewSyncResponse.Builder ClearStatus()
			{
				this.PrepareBuilder();
				this.result.hasStatus = false;
				this.result.status_ = 0u;
				return this;
			}
		}
		public const int RetFieldNumber = 1;
		public const int CmdListFieldNumber = 2;
		public const int ContinueFlagFieldNumber = 3;
		public const int KeyBufFieldNumber = 4;
		public const int StatusFieldNumber = 5;
		private static readonly NewSyncResponse defaultInstance;
		private static readonly string[] _newSyncResponseFieldNames;
		private static readonly uint[] _newSyncResponseFieldTags;
		private bool hasRet;
		private int ret_;
		private bool hasCmdList;
		private CmdList cmdList_;
		private bool hasContinueFlag;
		private uint continueFlag_;
		private bool hasKeyBuf;
		private SKBuiltinBuffer_t keyBuf_;
		private bool hasStatus;
		private uint status_;
		private int memoizedSerializedSize = -1;
		public static NewSyncResponse DefaultInstance
		{
			get
			{
				return NewSyncResponse.defaultInstance;
			}
		}
		public override NewSyncResponse DefaultInstanceForType
		{
			get
			{
				return NewSyncResponse.DefaultInstance;
			}
		}
		protected override NewSyncResponse ThisMessage
		{
			get
			{
				return this;
			}
		}
		public int Ret
		{
			get
			{
				return this.ret_;
			}
		}
		public CmdList CmdList
		{
			get
			{
				return this.cmdList_ ?? CmdList.DefaultInstance;
			}
		}
		public uint ContinueFlag
		{
			get
			{
				return this.continueFlag_;
			}
		}
		public SKBuiltinBuffer_t KeyBuf
		{
			get
			{
				return this.keyBuf_ ?? SKBuiltinBuffer_t.DefaultInstance;
			}
		}
		public uint Status
		{
			get
			{
				return this.status_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasRet && this.hasCmdList && this.hasContinueFlag && this.hasKeyBuf && this.CmdList.IsInitialized && this.KeyBuf.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasRet)
				{
					num += CodedOutputStream.ComputeInt32Size(1, this.Ret);
				}
				if (this.hasCmdList)
				{
					num += CodedOutputStream.ComputeMessageSize(2, this.CmdList);
				}
				if (this.hasContinueFlag)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.ContinueFlag);
				}
				if (this.hasKeyBuf)
				{
					num += CodedOutputStream.ComputeMessageSize(4, this.KeyBuf);
				}
				if (this.hasStatus)
				{
					num += CodedOutputStream.ComputeUInt32Size(5, this.Status);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private NewSyncResponse()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] newSyncResponseFieldNames = NewSyncResponse._newSyncResponseFieldNames;
			if (this.hasRet)
			{
				output.WriteInt32(1, newSyncResponseFieldNames[3], this.Ret);
			}
			if (this.hasCmdList)
			{
				output.WriteMessage(2, newSyncResponseFieldNames[0], this.CmdList);
			}
			if (this.hasContinueFlag)
			{
				output.WriteUInt32(3, newSyncResponseFieldNames[1], this.ContinueFlag);
			}
			if (this.hasKeyBuf)
			{
				output.WriteMessage(4, newSyncResponseFieldNames[2], this.KeyBuf);
			}
			if (this.hasStatus)
			{
				output.WriteUInt32(5, newSyncResponseFieldNames[4], this.Status);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasRet)
			{
				num ^= this.ret_.GetHashCode();
			}
			if (this.hasCmdList)
			{
				num ^= this.cmdList_.GetHashCode();
			}
			if (this.hasContinueFlag)
			{
				num ^= this.continueFlag_.GetHashCode();
			}
			if (this.hasKeyBuf)
			{
				num ^= this.keyBuf_.GetHashCode();
			}
			if (this.hasStatus)
			{
				num ^= this.status_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			NewSyncResponse newSyncResponse = value as NewSyncResponse;
			return newSyncResponse != null && (this.hasRet == newSyncResponse.hasRet && (!this.hasRet || this.ret_.Equals(newSyncResponse.ret_))) && (this.hasCmdList == newSyncResponse.hasCmdList && (!this.hasCmdList || this.cmdList_.Equals(newSyncResponse.cmdList_))) && (this.hasContinueFlag == newSyncResponse.hasContinueFlag && (!this.hasContinueFlag || this.continueFlag_.Equals(newSyncResponse.continueFlag_))) && (this.hasKeyBuf == newSyncResponse.hasKeyBuf && (!this.hasKeyBuf || this.keyBuf_.Equals(newSyncResponse.keyBuf_))) && (this.hasStatus == newSyncResponse.hasStatus && (!this.hasStatus || this.status_.Equals(newSyncResponse.status_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<NewSyncResponse, NewSyncResponse.Builder>.PrintField("Ret", this.hasRet, this.ret_, writer);
			GeneratedMessageLite<NewSyncResponse, NewSyncResponse.Builder>.PrintField("CmdList", this.hasCmdList, this.cmdList_, writer);
			GeneratedMessageLite<NewSyncResponse, NewSyncResponse.Builder>.PrintField("ContinueFlag", this.hasContinueFlag, this.continueFlag_, writer);
			GeneratedMessageLite<NewSyncResponse, NewSyncResponse.Builder>.PrintField("KeyBuf", this.hasKeyBuf, this.keyBuf_, writer);
			GeneratedMessageLite<NewSyncResponse, NewSyncResponse.Builder>.PrintField("Status", this.hasStatus, this.status_, writer);
		}
		public static NewSyncResponse ParseFrom(byte[] data)
		{
			return NewSyncResponse.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private NewSyncResponse MakeReadOnly()
		{
			return this;
		}
		public static NewSyncResponse.Builder CreateBuilder()
		{
			return new NewSyncResponse.Builder();
		}
		public override NewSyncResponse.Builder ToBuilder()
		{
			return NewSyncResponse.CreateBuilder(this);
		}
		public override NewSyncResponse.Builder CreateBuilderForType()
		{
			return new NewSyncResponse.Builder();
		}
		public static NewSyncResponse.Builder CreateBuilder(NewSyncResponse prototype)
		{
			return new NewSyncResponse.Builder(prototype);
		}
		static NewSyncResponse()
		{
			NewSyncResponse.defaultInstance = new NewSyncResponse().MakeReadOnly();
			NewSyncResponse._newSyncResponseFieldNames = new string[]
			{
				"CmdList",
				"ContinueFlag",
				"KeyBuf",
				"Ret",
				"Status"
			};
			NewSyncResponse._newSyncResponseFieldTags = new uint[]
			{
				18u,
				24u,
				34u,
				8u,
				40u
			};
			object.ReferenceEquals(micromsgBackground.Proto.NewSyncResponse.Descriptor, null);
		}
	}
}
